package sz.sz3;

import dao.UserDao;
import factory.UserDaoFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.User;
import service.UserService;
import service.impl.Resource;

@Service("userService")
public class UserServiceImpl1 implements UserService {
  private UserDao userDao;
  @Override
  public void save(User user) {
    userDao.saveUser(user);
  }
  public UserServiceImpl1(){

  }
  public UserServiceImpl1(UserDao userDao) {
    this.userDao = userDao;
  }
}
